package com.jingdong.service.address.impl;


import com.jingdong.dao.address.impl.CountyDaoImpl;
import com.jingdong.model.County;
import com.jingdong.service.address.CountyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountyServiceImpl implements CountyService {
    @Autowired
    private CountyDaoImpl countyDao;

    public List<County> getCountyList(int id) {
        return countyDao.getCountyList(id);
    }

    public County getCountyById(int id) {
        return countyDao.getCountyById(id);
    }

    public int countySave(County county) {
        return countyDao.countySave(county);
    }

    public County getCountyForLikeByName(String stringCounty) {
        return countyDao.getCountyForLikeByName(stringCounty);
    }
}
